cmake_minimum_required(VERSION 2.6)

PROJECT(comm)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++0x -g -O2 -lrt -Wall -fno-permissive")
AUX_SOURCE_DIRECTORY(. main)
AUX_SOURCE_DIRECTORY(./segment segment)
AUX_SOURCE_DIRECTORY(./protoc protoc)
AUX_SOURCE_DIRECTORY(./stat stat)

list(REMOVE_ITEM stat "./StatTool.cc")

message("${stat}")
add_library(common ${main} ${segment} ${protoc} ${stat})
target_include_directories(common  PUBLIC
./
../3rdlib
../search_local/index_storage/api/c_api_cc
../3rdlib/jsoncpp/include
../3rdlib/attr_api
./stat
)
